﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Capokun.Models
{
    public class ContactModel
    {
        [Required]
        [DisplayName("Name")]
        public string Name { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [DisplayName("EmailAddress")]
        [RegularExpression("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$",ErrorMessage = "Not a valid email")]
        public string EmailAdress { get; set; }

        [Required]
        [DisplayName("Message")]
        public string Message { get; set; }

        [Required]
        [DisplayName("Language")]
        public string Language { get; set; }
    }
}